package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import java.util.Objects;

/**
 * @desc AchievementTypeGradeRelationshipDto
 * @使用场景
 */
@Data
public class AchievementTypeGradeRelationshipDto
  extends BaseDto
  implements Serializable {

  /**
   * 成果类型等级关系ID
   */
  @ApiModelProperty("成果类型等级关系ID")
  private String typeGradeRelationshipId;

  /**
   * 成果等级ID
   */
  @ApiModelProperty("成果等级ID")
  private String achievementGradeId;

  /**
   * 成果类型ID
   */
  @ApiModelProperty("成果类型ID")
  private String achievementTypeId;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;
/**
     * 排序 
     */
    @ApiModelProperty("排序")
    private Long	 orderNumber;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      AchievementTypeGradeRelationshipDto that = (AchievementTypeGradeRelationshipDto) o;
      return  typeGradeRelationshipId == that.typeGradeRelationshipId&&achievementGradeId == that.achievementGradeId&&achievementTypeId == that.achievementTypeId&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&orderNumber == that.orderNumber;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), typeGradeRelationshipId,achievementGradeId,achievementTypeId,subjectLifeCycle,operationInductionId,operateTime,orderNumber);
    }

}
